/*
 *  Copyright (c) ${YEAR} ${USER}
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lingeringdream.luciole.model.entity;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Column;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * 信息
 *
 * @author Kirky
 * @version 1.0
 * @date 2022/5/5
 */
@Entity(tableName = "message")
public class Message extends OrmObject {
    @PrimaryKey(autoGenerate = true)
    private Integer id;

    @Column(name = "mid", notNull = true, unique = true, index = true)
    private Long mid;

    @Column(name = "title", notNull = true)
    private String title;

    @Column(name = "content", notNull = true)
    private String content;

    @Column(name = "type", notNull = true)
    private Integer type;

    /**是否阅读*/
    @Column(name = "status", notNull = true)
    private Boolean status;

    @Column(name = "time", notNull = true)
    private Long time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }
}
